package com.hpsk.thread;

import com.alibaba.ttl.TransmittableThreadLocal;

public class ThreadLocalTestId {
    private static final TransmittableThreadLocal<String> DEPT_ID_THREAD_LOCAL = new TransmittableThreadLocal<>();

    public static String get(){
        return DEPT_ID_THREAD_LOCAL.get();
    }

    public static void set(String deptId){
        DEPT_ID_THREAD_LOCAL.set(deptId);
    }

    public static void remove(){
        DEPT_ID_THREAD_LOCAL.remove();
    }
}
